package com.ruoyi.orders.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单功能对象 orders
 * 
 * @author atzxc
 * @date 2024-05-02
 */
public class Orders
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long orderId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 任务ID */
    @Excel(name = "任务ID")
    private Long taskId;

    /** 骑手ID */
    @Excel(name = "骑手ID")
    private Long courierId;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    /**  */
    private Long refundId;

    /** 起始地址ID */
    @Excel(name = "起始地址ID")
    private Long orderAddresshome;

    /** 终止地址ID */
    @Excel(name = "终止地址ID")
    private Long orderAddressgo;

    /** 订单编号 */
    private String orderCode;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private Long orderReward;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderPublishtime;

    /** 截至时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截至时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderDeadlinetime;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderStatus;

    /** 是否删除 */
    private Integer isdelete;

    /** 备注信息 */
    @Excel(name = "备注信息")
    private String orderRemark;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderCreatetime;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setCourierId(Long courierId) 
    {
        this.courierId = courierId;
    }

    public Long getCourierId() 
    {
        return courierId;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setRefundId(Long refundId) 
    {
        this.refundId = refundId;
    }

    public Long getRefundId() 
    {
        return refundId;
    }
    public void setOrderAddresshome(Long orderAddresshome) 
    {
        this.orderAddresshome = orderAddresshome;
    }

    public Long getOrderAddresshome() 
    {
        return orderAddresshome;
    }
    public void setOrderAddressgo(Long orderAddressgo) 
    {
        this.orderAddressgo = orderAddressgo;
    }

    public Long getOrderAddressgo() 
    {
        return orderAddressgo;
    }
    public void setOrderCode(String orderCode) 
    {
        this.orderCode = orderCode;
    }

    public String getOrderCode() 
    {
        return orderCode;
    }
    public void setOrderReward(Long orderReward) 
    {
        this.orderReward = orderReward;
    }

    public Long getOrderReward() 
    {
        return orderReward;
    }
    public void setOrderPublishtime(Date orderPublishtime) 
    {
        this.orderPublishtime = orderPublishtime;
    }

    public Date getOrderPublishtime() 
    {
        return orderPublishtime;
    }
    public void setOrderDeadlinetime(Date orderDeadlinetime) 
    {
        this.orderDeadlinetime = orderDeadlinetime;
    }

    public Date getOrderDeadlinetime() 
    {
        return orderDeadlinetime;
    }
    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }
    public void setIsdelete(Integer isdelete) 
    {
        this.isdelete = isdelete;
    }

    public Integer getIsdelete() 
    {
        return isdelete;
    }
    public void setOrderRemark(String orderRemark) 
    {
        this.orderRemark = orderRemark;
    }

    public String getOrderRemark() 
    {
        return orderRemark;
    }
    public void setOrderCreatetime(Date orderCreatetime) 
    {
        this.orderCreatetime = orderCreatetime;
    }

    public Date getOrderCreatetime() 
    {
        return orderCreatetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("taskId", getTaskId())
            .append("courierId", getCourierId())
            .append("categoryId", getCategoryId())
            .append("refundId", getRefundId())
            .append("orderAddresshome", getOrderAddresshome())
            .append("orderAddressgo", getOrderAddressgo())
            .append("orderCode", getOrderCode())
            .append("orderReward", getOrderReward())
            .append("orderPublishtime", getOrderPublishtime())
            .append("orderDeadlinetime", getOrderDeadlinetime())
            .append("orderStatus", getOrderStatus())
            .append("isdelete", getIsdelete())
            .append("orderRemark", getOrderRemark())
            .append("orderCreatetime", getOrderCreatetime())
            .toString();
    }
}
